//
//  UILabel+Extension.swift
//  小荣荣新浪微博
//
//  Created by zzr on 2018/4/26.
//  Copyright © 2018年 zzr. All rights reserved.
//

import UIKit

extension UILabel {
    class func navigationItemTitleLabel (title: String) -> UILabel {
        let ul = UILabel(frame: CGRect(x:0,y:0,width:50,height:60))
        ul.text = title
        ul.font = UIFont(name: "Zapfino", size: 20)
        ul.textColor = UIColor.darkGray
        return ul
    }
    
    class func cz_label(title: String, fontSize: CGFloat, color: UIColor) -> UILabel {
        let ul = UILabel(frame: CGRect(x:0,y:0,width:50,height:60))
        ul.text = title
        ul.font = UIFont.systemFont(ofSize: fontSize)
        ul.textColor = color
        return ul
    }
}
